﻿using UnityEngine;

namespace QFramework.Pacman
{
	/// <summary>
	/// 菜单跳转
	/// </summary>
	public class MenuNavigation : MonoBehaviour
	{

		public void MainMenu()
		{
			Application.LoadLevel("menu");
		}

		public void Quit()
		{
			Application.Quit();

#if UNITY_EDITOR
			UnityEditor.EditorApplication.isPlaying = false;
#endif
		}

		public void Play()
		{
			Application.LoadLevel("game");
		}

		public void HighScores()
		{
			Application.LoadLevel("scores");

		}

		public void Credits()
		{
			Application.LoadLevel("credits");
		}

		public void SourceCode()
		{
			Application.OpenURL("https://gitee.com/liangxiegame/Pacman");
		}
	}
}